package com.cssl.controller;

import com.cssl.pojo.User;
import com.cssl.service.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
public class HelloController {

    @Autowired
    private UserServiceImpl user;

    public static void main(String[] args) {
        System.out.println("11111");


    }

    @RequestMapping("/getUser4")
    public User getUser4(int id) {
        List<String> list = new ArrayList<String>();
        list.add("fssfsdfsdf");
        return user.getUser(id);
    }
    @RequestMapping("/getUser5")
    public User getUser5(int id) {
        List<String> list = new ArrayList<String>();
        list.add("fsdfsdf ");
        return user.getUser(id);
    }


    @RequestMapping("/test")
    public void test(int id) {
      System.out.println("sdfdsfsdfd");

    }

    @RequestMapping("/test1")
    public void test1(int id) {
        System.out.println("sdfdsfsdfddfsfsdfsdf");

    }

    @RequestMapping("/wee121212")
    public void wee(int id) {
        System.out.println("gdgd`1`1`1");

    }
    @RequestMapping("/ewrwerwer")
    public void sdfsd(int id) {
        System.out.println("sdfsdfsdfsdf`1`1`1");

    }
}
